//分页封装

function Page(num){
    this.limit=10;       //每页多少条数据
    if(num){
        this.num=num<1?1:parseInt(num);         //当前页
    }else{
        this.num=1;
    }
    this.skipFrom=(this.limit*this.num)-this.limit;    //过滤数据条数
}
module.exports = Page;